<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/static/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/static/admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/static/admin/css/style.css" />

    <script type="text/javascript" src="/static/admin/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="/static/admin/lib/layer/2.4/layer.js"></script>
    <script type="text/javascript" src="/static/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
    <script type="text/javascript" src="/static/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="/static/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
    <script type="text/javascript" src="/static/admin/js/H-ui.js"></script>
    <script type="text/javascript" src="/static/admin/js/H-ui.admin.page.js"></script>
    <script type="text/javascript" src="/static/admin/js/admin.js?123"></script>
</head>

<body>
    <!-- _header -->
    <header class="navbar-wrapper">
        <div class="navbar navbar-fixed-top">
            <div class="container-fluid cl">
                <a class="logo navbar-logo f-l mr-10 hidden-xs" href="{:url('index/index')}">后台管理</a>
                <span class="logo navbar-slogan f-l mr-10 hidden-xs">v1.1</span>
                <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                    <ul class="cl">
                        <li class="li_time">
                            <i class="Hui-iconfont">&#xe690;</i>
                            <span></span>
                        </li>
                        <li>
                            <a aria-hidden="false" class="logo navbar-logo f-l mr-10 hidden-xs" href="{:url('index/index')}">
                                <i class="Hui-iconfont">&#xe67f;</i>系统首页</a>
                            <a aria-hidden="false" class="logo navbar-logo f-l mr-10 hidden-xs" href="/index.html" target="_blank" style="color:aqua;">
                                <i class="Hui-iconfont">&#xe67f;</i>网站首页</a>
                        </li>
                        <li class="dropDown dropDown_hover">
                            <a href="#" class="dropDown_A">{$Think.session.username}
                                <i class="Hui-iconfont">&#xe6d5;</i>
                            </a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li>
                                    <a href="{:url('admin_user/modifypwd')}">修改密码</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0);" onClick="logout()">退出</a>
                                </li>
                            </ul>
                        </li>
                        <!-- <li id="Hui-msg">
                            <a href="#" title="消息">
                                <span class="badge badge-danger">1</span>
                                <i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i>
                            </a>
                        </li> -->
                        <li id="Hui-skin" class="dropDown right dropDown_hover">
                            <a href="javascript:;" class="dropDown_A" title="换肤">
                                <i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i>
                            </a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li>
                                    <a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a>
                                </li>
                                <li>
                                    <a href="javascript:;" data-val="blue" title="蓝色">蓝色</a>
                                </li>
                                <li>
                                    <a href="javascript:;" data-val="green" title="绿色">绿色</a>
                                </li>
                                <li>
                                    <a href="javascript:;" data-val="red" title="红色">红色</a>
                                </li>
                                <li>
                                    <a href="javascript:;" data-val="yellow" title="黄色">黄色</a>
                                </li>
                                <li>
                                    <a href="javascript:;" data-val="orange" title="橙色">橙色</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <!-- /_header -->
    <!--_menu -->
    <aside class="Hui-aside">
        <div class="menu_dropdown bk_2">
            <dl id="menu-article">
                <dt {eq name="value.id" value="$mid" }class="selected">
                    <a href="{:url('admin/index/index')}"><i class="Hui-iconfont">&#xe67f;</i> 首页</a>
                </dt>
            </dl>
            {foreach $data_menu as $value}
            <dl id="menu-article">
                <dt {eq name="value.id" value="$active_pid"} class="selected" {/eq}>
                    <i class="Hui-iconfont">{$value.icon}</i> {$value.name}
                    <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                </dt>
                <dd {eq name="value.id" value="$active_pid" }style="display:block" {/eq}>
                    {notempty name='value.child'} {foreach $value.child as $val}
                    <ul>
                        <li>
                            <a href="{:url($val.url)}"><i class="Hui-iconfont">{$val.icon}</i> {$val.name}</a>
                        </li>
                    </ul>
                    {/foreach} {/notempty}
                </dd>
            </dl>
            {/foreach}
        </div>
    </aside>
    <div class="dislpayArrow hidden-xs">
        <a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a>
    </div>
    <!--/_menu -->
    <section class="Hui-article-box">{__CONTENT__}</section>
    <!--_footer -->

    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript">
        // 退出登陆
        function logout() {
            layer.confirm('纳尼,要退出？', function (index) {
                window.location.href = "{:url('login/logout')}";
            })
        }
        //当前时间
        function time() {
            var today = new Date()
            var y = today.getFullYear();
            var mon = today.getMonth() + 1;
            var d = today.getDate();
            var h = today.getHours();
            var m = today.getMinutes();
            var s = today.getSeconds();
            // add a zero in front of numbers<10
            mon = mon < 10 ? "0" + mon : mon;
            d = d < 10 ? "0" + d : d;
            h = h < 10 ? "0" + h : h;
            m = m < 10 ? "0" + m : m;
            s = s < 10 ? "0" + s : s;
            $(".li_time span").html(y + '-' + mon + '-' + d + "&nbsp;&nbsp;&nbsp;" + h + ":" + m + ":" + s);
            t = setTimeout('time()', 1000);
        }
        time();
    </script>
    <!--请在上方写此页面业务相关的脚本-->
    <!--/_footer -->
</body>

</html>